//
//  XFDNetManager.h
//  XFDNetManager_Example
//
//  Created by 朱国良 on 2017/11/7.
//  Copyright © 2017年 GL-ZHU. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <XMNetworking/XMNetworking.h>

typedef void(^requestSuccessBlock)(id response);
typedef void(^requestFailureBlock)(NSError *error,NSString *tips);

@interface XFDNetManager : NSObject

+ (void)netManagerRequestWithMethod:(XMHTTPMethodType)method
                            WithAPI:(NSString *)api
                         WithParams:(NSDictionary*)params
                   WithSuccessBlock:(requestSuccessBlock)success
                    WithFailurBlock:(requestFailureBlock)failure
                            withHUB:(BOOL)isHas;
+ (void)netTokenManagerRequestWithMethod:(XMHTTPMethodType)method
                                 WithAPI:(NSString *)api
                              WithParams:(NSDictionary*)params
                        WithSuccessBlock:(requestSuccessBlock)success
                         WithFailurBlock:(requestFailureBlock)failure
                                 withHUB:(BOOL)isHas;

@end
